package com.zhisheng.gufei.user.service.impl;



import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhisheng.core.page.Page;
import com.zhisheng.core.security.dao.SystemDao;
import com.zhisheng.core.security.entity.User;
import com.zhisheng.core.service.impl.BaseServiceImpl;
import com.zhisheng.gufei.user.dao.UserDao;
import com.zhisheng.gufei.user.service.UserService;

@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<User,Integer, UserDao> implements
    UserService {
    
	@Resource
	private SystemDao systemDao;
	
	public void setUserDao(UserDao userDao) {
		this.entityDao = userDao;
	}
	
	@Override
	public List<User> getEnabledUser(Page<User> page) {
		return null;
	}
	
	@Override
	public boolean isExistUser(String name) {
		List<User> users = systemDao.getUserByName(name);
		if(users!=null && !users.isEmpty()){
			return true;
		}
		return false;
	}
}
